import { DICTIONARY, ADDDIC, UPDATEDIC, DELDIC, VERCODE, BACKUP } from "./api";
import { METHOD, request } from "@/utils/request";

//获取验证码
export function code(params) {
  return request(VERCODE, METHOD.GET, params);
}
//字典组列表
export function list(params) {
  return request(DICTIONARY, METHOD.GET, params);
}
//新增字典组
export function add(params) {
  return request(ADDDIC, METHOD.POST, params);
}
//编辑字典组
export function update(params) {
  return request(UPDATEDIC, METHOD.POST, params);
}
//删除字典组
export function del(params) {
  return request(DELDIC, METHOD.POST, params);
}
//数据备份
export function backup() {
  return request(BACKUP, METHOD.POST);
}
